<template>
  <div class="selectedData">
    <el-table :data="listDataB" border :height="tableHeight" :header-cell-style="{ textAlign: 'center' }"
      :cell-style="{ textAlign: 'center' }" @row-click="getCurrentRowA" highlight-current-row v-if="selectMsg == 'bidding'">
      <el-table-column type="index" align="center" label=" " width="50"></el-table-column>
      <el-table-column prop="bidCode" label="标的编号" show-overflow-tooltip ></el-table-column>
      <el-table-column prop="bidName" label="标的名字" show-overflow-tooltip ></el-table-column>
    </el-table>
    <!-- 分页 -->
    <!-- <div class="block" v-if="selectMsg != 'workDynamic'">
      <el-pagination
        ref="pagination"
        small
        background
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="Pagination.currentPage"
        :page-sizes="Pagination.pageSizeList"
        :page-size="Pagination.PageSize"
        :layout="Pagination.layout"
        :total="Pagination.total">
      </el-pagination>
    </div> -->
  </div>
</template>

<script>
import {
  // theOrderManageDdKh,
  queryBiddingList
} from '@/request/api'
import paginationMixin from '@/mixins/pagination'
export default {
  mixins: [paginationMixin],
  data() {
    return {
      tableData: [], // 表格数据
      listDataB:[],
      usertableData:[],
      tableHeight: 300, // 表格高度
      itemData:[],
    }
  },
  props: {
    selectMsg:{
      type:Object,
      required:true
    },
    listDataB:{
      type:Object,
      required:true
    }
  },

  mounted() {
    // this.refreshList()
    this.typeList()
    this.itemList()
  },
  
  methods: {

    //获取列表数据
    // getList(currentPage, pageSize, updateTotal) {
    //   theOrderManageDdKh({
    //     PageIndexs:this.Pagination.currentPage.toString(),
    //     PageSizes:this.Pagination.pageSize.toString()
    //   }).then(response => {
    //     this.tableData = response.data
    //     // console.log(this.tableData)
    //     updateTotal(Number(response.data.total))
    //   })
    // },
    typeList(){
      queryBiddingList({}).then(res=>{
        this.listDataB = res.data
      })
    },
    // itemList(){
    //   theOrderManageZyztwList({doMain:'作业动态'}).then(res =>{
    //     this.tableDataA = res.data
    //   })
    // },
    //点击获取当前表格数据
    getCurrentRowA(row){
      this.$emit('childFn',row ,false)
    },
    getCurrentRowB(row){
      this.$emit('service',row, false)
    },
    getCurrentRowC(row){
      this.$emit('dynamic',row, false)
    }

  }
}
</script>

<style lang="scss" scoped>
.selectedData {
  width: 100%;
  height: 500px;
  .block {
    margin-top: 10px;
    ::v-deep .el-input__suffix > .el-input__icon {
      display: none;
    }
  }
}
</style>
